package java0106.s;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Java04 {

    public static void main(String[] args) {

//        日期时间:
        Date date = new Date();
        SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String strDate = s.format(date);
        System.out.println(strDate);
    }
}
